import uni from "@dcloudio/vite-plugin-uni";
import { defineConfig } from "vite";
import { resolve } from "path";

// https://vitejs.dev/config/
export default defineConfig(({ command, mode }) => {
  return {
    plugins: [uni()],
    resolve: {
      alias: {
        "@": resolve(__dirname, "src"),
        "@utils": resolve(__dirname, "src/utils"),
        "@components": resolve(__dirname, "src/components"),
        "@pages": resolve(__dirname, "src/pages"),
        "@api": resolve(__dirname, "src/api"),
      },
    },
  };
});
